package com.quectel.core.module.household.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/03/10 11:46
 */
@Data
@Schema
public class HouseholdFamilyDto implements Serializable {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 住户id
     */
    @Schema(description = "住户id")
    @NotNull
    private Long householdId;

    /**
     * 称呼类型 父亲 母亲
     */
    @Schema(description = "称呼类型 父亲 母亲")
    @NotBlank(message = "称呼类型不能为空")
    private String relation;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String mobile;

    /**
     * 工作单位
     */
    @Schema(description = "工作单位")
    @NotBlank(message = "工作单位不能为空")
    private String company;

    /**
     * 家庭住址
     */
    @Schema(description = "家庭住址")
    @NotBlank(message = "家庭住址不能为空")
    private String address;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 监护人标识1是0否
     */
    @Schema(description = "监护人标识1是0否")
    private Byte guardianFlag;

    /************非数据库字段 start ************/

    /************非数据库字段 end **************/
}
